# -*- coding: utf-8 -*-
from src.com.ydzy.app.stragety_init import env
from src.com.ydzy.util.base_util import BaserUtil
from src.com.ydzy.util.http_util import HttpClient

http_client = HttpClient()
base_client=BaserUtil()

active=env.active
env_dict={
    'test':'https://audit.gat.gz/',
    'local':'http://localhost:20028/',
}
interface='auditcenter/log_strategies/'
base_strategy_id=10

init_param=\
{
    "logType": "009",
    "sysId": "",
    "type": "01",
    "name": "审批日志策略系统Z",
    "desc": "审批日志策略系统Z",
    "auditStatus": "1",
    "status": "1",
    "fieldInfos": [
        {
            "sortNum": 1,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "logId",
                "type": "input",
                "label": "日志标识"
            },
            "fieldName": "logId",
            "fieldZh": "日志标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "日志标识类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule01",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "日志标识完整性检查项",
            "ruleAdvise": "日志标识规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:04:44",
            "updateTime": "2024-05-30 16:16:21"
        },
        {
            "sortNum": 2,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveId",
                "type": "input",
                "label": "审批编号"
            },
            "fieldName": "approveId",
            "fieldZh": "审批编号",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批编号类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule02",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批编号完整性检查项",
            "ruleAdvise": "审批编号规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:04:44",
            "updateTime": "2024-05-30 16:16:21"
        },
        {
            "sortNum": 3,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateTime",
                "type": "input",
                "label": "操作时间"
            },
            "fieldName": "operateTime",
            "fieldZh": "操作时间",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作时间类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule03",
            "ruleReverse": "0",
            "expression": "^\\d{10}$",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作时间完整性检查项",
            "ruleAdvise": "操作时间规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 4,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateOBJAccountType",
                "type": "select",
                "label": "操作人员账号类型",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "主账号"
                    },
                    {
                        "code": "0",
                        "content": "子账号"
                    }
                ]
            },
            "fieldName": "operateOBJAccountType",
            "fieldZh": "操作人员账号类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "操作人员账号类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule04",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "操作人员账号类型完整性检查项",
            "ruleAdvise": "操作人员账号类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 5,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "aggencyApprove",
                "type": "select",
                "label": "是否代理审批",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "是"
                    },
                    {
                        "code": "0",
                        "content": "否"
                    }
                ]
            },
            "fieldName": "aggencyApprove",
            "fieldZh": "是否代理审批",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "是否代理审批类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule05",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "是否代理审批完整性检查项",
            "ruleAdvise": "是否代理审批规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 6,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "agencyUserId",
                "type": "input",
                "label": "代理人ID"
            },
            "fieldName": "agencyUserId",
            "fieldZh": "代理人ID",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "代理人ID类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule06",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "代理人ID完整性检查项",
            "ruleAdvise": "代理人ID规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 7,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "agencyUsername",
                "type": "input",
                "label": "代理人名称"
            },
            "fieldName": "agencyUsername",
            "fieldZh": "代理人名称",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "代理人名称类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule07",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "代理人名称完整性检查项",
            "ruleAdvise": "代理人名称规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 8,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "agencyIdCard",
                "type": "input",
                "label": "代理人身份证号"
            },
            "fieldName": "agencyIdCard",
            "fieldZh": "代理人身份证号",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "代理人身份证号类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule08",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "代理人身份证号完整性检查项",
            "ruleAdvise": "代理人身份证号规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 9,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "agencyOrg",
                "type": "input",
                "label": "代理人所属单位"
            },
            "fieldName": "agencyOrg",
            "fieldZh": "代理人所属单位",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "代理人所属单位类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule09",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "代理人所属单位完整性检查项",
            "ruleAdvise": "代理人所属单位规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 10,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "agencyOrgname",
                "type": "input",
                "label": "代理人所属单位名称"
            },
            "fieldName": "agencyOrgname",
            "fieldZh": "代理人所属单位名称",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "代理人所属单位名称类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule10",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "代理人所属单位名称完整性检查项",
            "ruleAdvise": "代理人所属单位名称规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 11,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateOBJ",
                "type": "input",
                "label": "审批人员ID"
            },
            "fieldName": "operateOBJ",
            "fieldZh": "审批人员ID",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批人员ID类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule11",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批人员ID完整性检查项",
            "ruleAdvise": "审批人员ID规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 12,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateName",
                "type": "input",
                "label": "审批人员名称"
            },
            "fieldName": "operateName",
            "fieldZh": "审批人员名称",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批人员名称类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule12",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批人员名称完整性检查项",
            "ruleAdvise": "审批人员名称规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 13,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateOrg",
                "type": "input",
                "label": "审批人员所属单位"
            },
            "fieldName": "operateOrg",
            "fieldZh": "审批人员所属单位",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批人员所属单位类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule13",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批人员所属单位完整性检查项",
            "ruleAdvise": "审批人员所属单位规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 14,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateOrgname",
                "type": "input",
                "label": "审批人员所属单位名称"
            },
            "fieldName": "operateOrgname",
            "fieldZh": "审批人员所属单位名称",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批人员所属单位名称类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule14",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批人员所属单位名称完整性检查项",
            "ruleAdvise": "审批人员所属单位名称规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 15,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateIdCard",
                "type": "input",
                "label": "审批人员身份证号"
            },
            "fieldName": "operateIdCard",
            "fieldZh": "审批人员身份证号",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批人员身份证号类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule15",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批人员身份证号完整性检查项",
            "ruleAdvise": "审批人员身份证号规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 16,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "terminalType",
                "type": "input",
                "label": "终端类型",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "Phone"
                    },
                    {
                        "code": "0",
                        "content": "PC"
                    }
                ]

            },
            "fieldName": "terminalType",
            "fieldZh": "终端类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "终端类型类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule16",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "终端类型完整性检查项",
            "ruleAdvise": "终端类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 17,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "browserInfo",
                "type": "input",
                "label": "浏览器标识"
            },
            "fieldName": "browserInfo",
            "fieldZh": "浏览器标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "浏览器标识",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule17",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "终端类型完整性检查项",
            "ruleAdvise": "终端类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 16:22:30",
            "updateTime": "2024-05-30 16:22:51"
        },
        {
            "sortNum": 18,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "terminalId",
                "type": "input",
                "label": "终端硬件唯一标识"
            },
            "fieldName": "terminalId",
            "fieldZh": "终端硬件唯一标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "终端硬件唯一标识",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule18",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "终端硬件唯一标识完整性检查项",
            "ruleAdvise": "终端硬件唯一标识规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 16:23:17",
            "updateTime": "2024-05-30 16:23:17"
        },
        {
            "sortNum": 19,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "terminalIp",
                "type": "input",
                "label": "终端唯一标识IP"
            },
            "fieldName": "terminalIp",
            "fieldZh": "终端唯一标识IP",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "终端唯一标识IP",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule19",
            "ruleReverse": "0",
            "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "终端唯一标识IP完整性检查项",
            "ruleAdvise": "终端唯一标识IP规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 16:27:06",
            "updateTime": "2024-05-30 16:27:06"
        },
        {
            "sortNum": 20,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "applyApproveName",
                "type": "input",
                "label": "提请审批人员姓名"
            },
            "fieldName": "applyApproveName",
            "fieldZh": "提请审批人员姓名",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "提请审批人员姓名",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule20",
            "ruleReverse": "0",
            "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "提请审批人员姓名完整性检查项",
            "ruleAdvise": "提请审批人员姓名规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 16:27:06",
            "updateTime": "2024-05-30 16:27:06"
        },
        {
            "sortNum": 20,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveTable",
                "type": "input",
                "label": "审批内容"
            },
            "fieldName": "approveTable",
            "fieldZh": "审批内容",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批内容",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule20",
            "ruleReverse": "0",
            "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批内容完整性检查项",
            "ruleAdvise": "审批内容规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 16:27:06",
            "updateTime": "2024-05-30 16:27:06"
        },
        {
            "sortNum": 21,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveResult",
                "type": "input",
                "label": "最终审批结果"
            },
            "fieldName": "approveResult",
            "fieldZh": "最终审批结果",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "最终审批结果",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule21",
            "ruleReverse": "0",
            "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "最终审批结果完整性检查项",
            "ruleAdvise": "最终审批结果规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 16:27:06",
            "updateTime": "2024-05-30 16:27:06"
        },
        {
            "sortNum": 22,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveTime",
                "type": "input",
                "label": "最终审批时间"
            },
            "fieldName": "approveTime",
            "fieldZh": "最终审批时间",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "最终审批时间类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule22",
            "ruleReverse": "0",
            "expression": "^\\d{10}$",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "最终审批时间完整性检查项",
            "ruleAdvise": "最终审批时间规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 23,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveInforceTime",
                "type": "input",
                "label": "审批生效时间"
            },
            "fieldName": "approveInforceTime",
            "fieldZh": "审批生效时间",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批生效时间类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule23",
            "ruleReverse": "0",
            "expression": "^\\d{10}$",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批生效时间完整性检查项",
            "ruleAdvise": "审批生效时间规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 24,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "applySystemId",
                "type": "input",
                "label": "业务应用平台标识"
            },
            "fieldName": "applySystemId",
            "fieldZh": "业务应用平台标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "业务应用平台标识类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule24",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "业务应用平台标识完整性检查项",
            "ruleAdvise": "业务应用平台标识规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 25,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "extend",
                "type": "select",
                "label": "是否继承父审批结果",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "是"
                    },
                    {
                        "code": "0",
                        "content": "否"
                    }
                ]
            },
            "fieldName": "extend",
            "fieldZh": "是否继承父审批结果",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "是否继承父审批结果类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule25",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "是否继承父审批结果完整性检查项",
            "ruleAdvise": "是否继承父审批结果规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 25,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "relatedId",
                "type": "input",
                "label": "父审批流程ID"
            },
            "fieldName": "relatedId",
            "fieldZh": "父审批流程ID",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "父审批流程ID类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule25",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "父审批流程ID完整性检查项",
            "ruleAdvise": "父审批流程ID规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 27,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveTimeLine",
                "type": "select",
                "label": "审批时序",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "事前审批"
                    },
                    {
                        "code": "0",
                        "content": "事后审批"
                    }
                ]
            },
            "fieldName": "approveTimeLine",
            "fieldZh": "审批时序",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批时序类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule25",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批时序完整性检查项",
            "ruleAdvise": "审批时序规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 28,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveType",
                "type": "select",
                "label": "审批类型",
                "optionKey": "code",
                "optionName": "content",
                "options": []
            },
            "fieldName": "approveType",
            "fieldZh": "审批类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule28",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批类型完整性检查项",
            "ruleAdvise": "审批类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 29,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveNode",
                "type": "input",
                "label": "审批节点"
            },
            "fieldName": "approveNode",
            "fieldZh": "审批节点",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批节点类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule29",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批节点完整性检查项",
            "ruleAdvise": "审批节点规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:04:44",
            "updateTime": "2024-05-30 16:16:21"
        },
        {
            "sortNum": 30,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveContent",
                "type": "input",
                "label": "审批意见"
            },
            "fieldName": "approveContent",
            "fieldZh": "审批意见",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批意见类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule30",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批意见完整性检查项",
            "ruleAdvise": "审批意见规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:04:44",
            "updateTime": "2024-05-30 16:16:21"
        },
        {
            "sortNum": 31,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveTempResult",
                "type": "select",
                "label": "审批结果",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "通过"
                    },
                    {
                        "code": "0",
                        "content": "不通过"
                    }
                ]
            },
            "fieldName": "approveTempResult",
            "fieldZh": "审批结果",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批结果类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule31",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批结果完整性检查项",
            "ruleAdvise": "审批结果规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
    ]
}

print(len(init_param['fieldInfos']))

def get_req_url(active):
    req_url=env_dict[active]+interface
    return req_url


def main():
    url = get_req_url(active)+str(base_strategy_id)
    res2 = http_client.put(url=url, data=init_param, fast_falg=True)
    print(res2)


if __name__=='__main__':
    main()